//
//  RHQuestionCell.m
//  RuiHeAppApp
//
//  Created by Yan Chen on 2023/10/30.
//

#import "RHQuestionCell.h"

@implementation RHQuestionCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self setupUI];
    }
    return  self;
}


-(void)setupUI
{
    self.contentView.backgroundColor = CFTabViewBgColor;
    UIView *bgView = kView;
    bgView.backgroundColor = UIColor.whiteColor;
   
    [self.contentView addSubview:bgView];
    [bgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(UIEdgeInsetsMake(0, 0, 0, 0));
    }];
    
    QMUILabel *contentLab = [[QMUILabel alloc]init];
    contentLab.numberOfLines = 0;
    contentLab.textColor = [UIColor colorWithHexString:@"3F4443" alpha:0.6];
    contentLab.font = [UIFont systemFontOfSize:13];
    contentLab.qmui_lineHeight = 18;
    [bgView addSubview:contentLab];
    self.contentLab = contentLab;
    [contentLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.insets(UIEdgeInsetsMake(0, 15, 15, 15));
    }];
    
    UIView *line = kView;
    line.backgroundColor = CFCellLineColor;
    [bgView addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(15);
        make.right.mas_offset(-15);
        make.height.offset(1);
        make.bottom.mas_offset(0);
    }];
}

@end
